#==================================================================
#
# Makefile for AvOS project
# Author:LynnLin lynn.lin@avocent.com
# Aug.1th 2008 
#
#=================================================================



CC = gcc
CLI_ID= Avocent AvOS CLI
CLI_VERSION = 0.0.1 
BUILD_DATE = $(shell date --iso-8601=minutes)

#linker command arguments
IFLAGS += -g -Wall -DCLI_ID="\"$(CLI_ID)\""  \
	 -DCLI_VERSION="\"$(CLI_VERSION)\"" -DBUILD_DATE="\"$(BUILD_DATE)\""

#compiler command arguments
CPPFLAGS = -I include
LFLAGS += -lreadline
all:
	${CC}  $(CPPFLAGS) $(IFLAGS) -c  src/*.c
	${CC} -o cli *.o $(LFLAGS) 

.PYTHON:clean
clean:
	rm -rf cli *.o
